<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/views1/DTD/views1-transitional.dtd">
<f:view xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">
	<ui:composition template="/views/layout/main.xhtml">
		<ui:define name="conteudo">
			<h:form id="formPrincipal">
				<div class="grid_18 div_48">
					<p:commandButton widgetVar="btn_Salvar" styleClass="save" ajax="false" 
						action="#{provaBean.salvar}" title="Salvar"/>
					<p:commandButton widgetVar="btn_Desistir" styleClass="cancel" ajax="false" 
						action="#{provaBean.desistir}" title="Desistir"/>
				</div>

				<div class="grid_18 titulo">Cadastrar Prova</div>
				
				<div class="grid_18">
					<p:messages id="message" />
				</div>
				<ui:include src="/views/prova/_form.xhtml" />
			</h:form>
			
			<ui:include src="/views/prova/_promptBuscaOfertaDisciplina.xhtml" />
			<ui:include src="/views/prova/_promptBuscaQuestaoBase.xhtml" />
			<ui:include src="/views/prova/questao/_create.xhtml" />
			<ui:include src="/views/prova/questao/alternativa/novo.xhtml" />
			<ui:include src="/views/prova/questao/alternativa/editar.xhtml" />
			<ui:include src="/views/prova/questao/alternativa/detalhar.xhtml" />

			<script type="text/javascript" src="#{request.contextPath}/resources/js/prova.js" />
		</ui:define>
	</ui:composition>
</f:view>